<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PageInfo>" %>
<%@ Import Namespace="Vit.CMS.Data" %>

<% Html.EnableClientValidation(); %>
<%= Html.ValidationSummary("Data validation error") %>
<% using (Html.BeginForm())
   { %>
   <fieldset>
        <legend><%= Html.Localize("PageInfo.Basic")%></legend>
        <p>
            <div class="span-4"><%= Html.LabelFor(o=>o.Name) %></div>
            <div class="span-6"><%= Html.DisplayFor(o=>o.Name) %></div>
        </p>
        <p>
            <div class="span-4"><%= Html.LabelFor(o=>o.Title) %></div>
            <div class="span-6"><%= Html.EditorFor(o=>o.Title) %></div>
            <div class="span-2"><%= Html.ValidationMessage("Title") %></div>
        </p>
        <p>
            <div class="span-4"><%= Html.LabelFor(o=>o.MetaKeywords) %></div>
            <div class="span-6"><%= Html.EditorFor(o => o.MetaKeywords)%></div>
            <div class="span-2"><%= Html.ValidationMessage("MetaKeywords")%></div>
        </p>
        <p>
            <div class="span-4"><%= Html.LabelFor(o=>o.MetaDescription) %></div>
            <div class="span-6"><%= Html.EditorFor(o => o.MetaDescription)%></div>
            <div class="span-2"><%= Html.ValidationMessage("MetaDescription")%></div>
        </p>
    </fieldset>
    <fieldset>
        <legend><%= Html.Localize("PageInfo.Layout")%></legend>
        <div><%= Html.EditorFor(o => o.DesignLayout)%></div>
    </fieldset>  
    <hr />
    <p>
        <input type="submit" value="Update" class = "ui-state-default ui-corner-all" />
    </p>
<% } %>
